<ul>
<?php foreach ($albumPicResult as $key=>$pic_list){?>
	<li style="float:left;list-style:none;">
		<a href = "javascript:;" class = 'pic_select' 
			data-id ="<?php echo $pic_list['AlbumPic']['id']?>"
			data-link ="<?php echo $pic_list['AlbumPic']['file_path']?>"
			data-ext ="<?php echo fileExt($pic_list['AlbumPic']['file_path'])?>"
			title="<?php echo $pic_list['AlbumPic']['title'];?>">
			<?php echo $this->Html->image($pic_list['AlbumPic']['file_path'],
					array('width'=>'100','height'=>'100','alt'=>$pic_list['AlbumPic']['title']))?>
		</a>
	</li>
	<?php }?>
</ul>
<br/>
<!-- begin 分页 -->
<?php if($albumPicResult && $totalPage>1){?>
<div class="paging" style = 'clear:both'>
	<?php if ($page != 1){?>
		<span class="prev">
			<a href="javascript:void(0);" onclick="<?php echo $id_pre;?>_showPicList('<?php echo $album_id;?>','<?php echo $page-1;?>');" rel="prev" >
				 上一页
			</a>
		</span>
	<?php }else{?>
		<span class="prev disabled"> 上一页</span>
	<?php }?>
	
	( <select onchange = "<?php echo $id_pre;?>_showPicList('<?php echo $album_id;?>',$(this).val());">
	<?php for ($i=1;$i<=$totalPage;$i++){?>
		<option value = '<?php echo $i;?>' <?php if($i == $page){echo 'selected';}?>><?php echo $i;?></option>
	<?php }?>
	</select>/<?php echo $totalPage?> )
	
	<?php if ($page<$totalPage){?>
		<span class="next">
			<a href="javascript:void(0);"
				onclick="<?php echo $id_pre;?>_showPicList('<?php echo $album_id;?>','<?php echo $page+1;?>');" rel="next">
				下一页 
			</a>
		</span>
	<?php }else{?>
			<span class="next disabled">下一页</span>
	<?php }?>
</div>
<?php }?>
<!-- end 分页 -->